/*
 Erica Sadun, http://ericasadun.com
 iPhone Developer's Cookbook, 3.0 Edition
 BSD License, Use at your own risk
 */

#import <UIKit/UIKit.h>


CGPoint CGRectGetCenter(CGRect rect);
CGRect  CGRectMoveToCenter(CGRect rect, CGPoint center);

@interface UIView (ViewFrameGeometry)
@property CGPoint origin;
@property CGSize size;

@property (readonly) CGPoint bottomLeft;
@property (readonly) CGPoint bottomRight;
@property (readonly) CGPoint topRight;

@property (nonatomic, assign) CGFloat x_zm;
@property (nonatomic, assign) CGFloat y_zm;


@property CGFloat height_zm;
@property CGFloat width_zm;

@property CGFloat top_zm;
@property CGFloat left_zm;

@property CGFloat bottom_zm;
@property CGFloat right_zm;

@property CGFloat centerX_zm;
@property CGFloat centerY_zm;

- (void) moveBy: (CGPoint) delta;
- (void) scaleBy: (CGFloat) scaleFactor;
- (void) fitInSize: (CGSize) aSize;


//判断两个view是否重叠交叉
- (BOOL)zm_intersectWithView:(UIView *)view;




@end
